<template>
  <div class="screen-page">
    <div class="page-background">
      <div class="container">
        <Left class="left" :componentsIndex="componentsIndex"></Left>
        <Center class="center"></Center>
        <Right class="right" :componentsIndex="componentsIndex"></Right>
      </div>
      <Footer class="footer" @changeActive="changeActive"></Footer>
    </div>
  </div>
</template>

<script setup>
import Left from "./echart/index.vue"
import Center from "./center/index.vue"
import Right from "./right/index.vue"
import Footer from "./footer/index.vue"

import { ref } from 'vue'
const componentsIndex = ref(1)

const changeActive = (index) => {
  componentsIndex.value = index
}
</script>

<style scoped lang="scss">
.screen-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: rgb(97, 86, 86);
  background-image: url('../assets/main.jpg');
  background-size: 100% 100%;
  font-size: 23rem;

  .page-background {
    height: 100%;
    background: radial-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .7), #000);

    .container {
      display: flex;
      justify-content: space-between;
      height: calc(100% - 150px);
      margin-bottom: 50px;

      .left {
        flex: 0 0 20%;
        // background: rgb(153, 142, 240);
      }

      .center {
        flex: 1;
        // background: rgb(70, 128, 128);
      }

      .right {
        flex: 0 0 20%;
        padding-right: 50px;
        // background: rgb(70, 121, 128);
      }
    }

    .footer {
      height: 100px;
      // background: rgb(70, 121, 128);
    }
  }
}
</style>
